package com.youpai.platform.chat.service.service.impl;

import com.youpai.platform.chat.service.service.ChatMessageFacadeInterface;
import com.youpai.platform.chat.service.service.ChatService;
import com.youpai.platform.vulture.service.entity.dto.ReceiveMessageDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @date: 2022/7/10 23:29
 * @author: Anna
 * @version: 1.0
 * @description: 聊天消息接收门面
 */
@Slf4j
@Component
public class ChatMessageFacadeImpl implements ChatMessageFacadeInterface {

    @Resource
    private ChatService chatService;

    @Override
    public void receive(ReceiveMessageDTO messageDTO) {
        chatService.receiveC2CMessage(messageDTO);
    }
}
